<!doctype html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>带方向感知的鼠标滑过图片边框特效</title>
	<link rel="stylesheet" type="text/css" href="css/normalize.css" />
	<link rel="stylesheet" type="text/css" href="css/htmleaf-demo.css">
	<style type="text/css">
		.wrapper{
			width: 980px;
			margin: 50px auto;
		}
		.img{margin: 10px;}
	</style>
</head>
<body>
	<div class="htmleaf-container">
		
		<div class="wrapper">
			<img src="http://placehold.it/300x200" class="img">
			<img src="http://placehold.it/300x100" class="img">
			<img src="http://placehold.it/300x200" class="img">
			</br>
			<img src="http://placehold.it/300x200" class="img">
			<img src="http://placehold.it/300x200" class="img" style="border-radius: 40px; -moz-border-radius : 40px;">
			<img src="http://placehold.it/300x200" class="img">
			</br>
			<img src="http://placehold.it/300x200" class="img">
			<img src="http://placehold.it/300x200" class="img">
			<img src="http://placehold.it/300x200" class="img" style="border-radius: 40px; -moz-border-radius : 40px;">
		</div>
		
	</div>
	
	<script src="js/jquery-1.11.0.min.js"></script>
	<script type="text/javascript" src="js/jquery.focus-follow.js"></script>
	<script>
	$(function() {
		$(".img").focusFollow({
			wrapper: '#wrapper',
			color: 'green',
			opacity: 0.5,
			margin_horizontal: 8,
			margin_vertical: 8,
			speed: 600,
			timeout: 500
		});
	});
	</script>
</body>
</html>